package com.jmlee.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Acarousel {

    private int id;
    private String imageUrl;
    private String itemId;
    private Long adminId;
    private String catId;
    private Integer type;
    private Integer isShow;
    private String linkUrl;
    private Date createTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date expiredTime;
    private String name;//商店名字
    private String address;//商店地址

    public Acarousel() {

    }

    public Acarousel(int id, String imageUrl, String itemId, Long adminId, String catId, Integer type, Integer isShow, String linkUrl, Date createTime, Date startTime, Date expiredTime, String name, String address) {
        this.id = id;
        this.imageUrl = imageUrl;
        this.itemId = itemId;
        this.adminId = adminId;
        this.catId = catId;
        this.type = type;
        this.isShow = isShow;
        this.linkUrl = linkUrl;
        this.createTime = createTime;
        this.startTime = startTime;
        this.expiredTime = expiredTime;
        this.name = name;
        this.address = address;
    }

    @Override
    public String toString() {
        return "Acarousel{" +
                "id=" + id +
                ", imageUrl='" + imageUrl + '\'' +
                ", itemId='" + itemId + '\'' +
                ", adminId='" + adminId + '\'' +
                ", catId='" + catId + '\'' +
                ", type=" + type +
                ", isShow=" + isShow +
                ", linkUrl='" + linkUrl + '\'' +
                ", createTime=" + createTime +
                ", startTime=" + startTime +
                ", expiredTime=" + expiredTime +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }


}
